package com.web.mapper;

import com.web.entity.HealthInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface HealthInfoMapper {

    public List<HealthInfo> getUserIdAndDate(HealthInfo healthInfo);

    public  HealthInfo findByUserIdAndDate(HealthInfo healthInfo);

    /*
    查询全部
     */
    public List<HealthInfo> list(HealthInfo healthInfo);

    /*
    id查询
     */
    public HealthInfo getById(Integer id);


    public List<HealthInfo> findByUserId(Integer userId);

    /*
    修改
     */
    public void update(HealthInfo healthInfo);

    /*
    新增
     */
    public void insert(HealthInfo healthInfo);

    /*
    删除
     */
    public void delete(Integer id);

}
